package com.boot.system.wrapper;

import cn.hutool.core.bean.BeanUtil;
import com.boot.framework.common.BaseEntityWrapper;
import com.boot.system.dto.SysOperateLogDTO;
import com.boot.system.entity.SysOperateLogEntity;

/**
 * @author yangfan
 * @date 2024/3/9
 * @Description
 */
public class SysOperateLogWrapper extends BaseEntityWrapper<SysOperateLogEntity, SysOperateLogDTO> {
    public static SysOperateLogWrapper build() {
        return new SysOperateLogWrapper();
    }
    @Override
    public SysOperateLogDTO entityDTO(SysOperateLogEntity entity) {
        return BeanUtil.copyProperties(entity, SysOperateLogDTO.class);
    }

    @Override
    public SysOperateLogEntity dtoEntity(SysOperateLogDTO dto) {
        return BeanUtil.copyProperties(dto, SysOperateLogEntity.class);
    }
}
